package cn.liberals.system.mapper;

import cn.liberals.system.domain.Permission;
import cn.liberals.basic.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author liberals
 * @since 2022-07-11
 */
public interface PermissionMapper extends BaseMapper<Permission> {

    Permission loadBySn(String permissionSn);

    // 根据logininfoid查询用户所拥有的权限
    List<String> loadOwnPermissionByLogininfoId(Long id);
}
